package me.youline.dataServer.dao;

import java.io.Serializable;

import me.youline.dataServer.entity.PubMsgStatisticRecorder;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
public interface PubMsgStatisticRecorderDAO extends JpaRepository<PubMsgStatisticRecorder, Serializable> {

	@Modifying(clearAutomatically=true)
	@Query("update PubMsgStatisticRecorder a set a.praiseNum = a.praiseNum + ?2 where a.id = ?1" )
	public void addPraiseNum(Long msgId,int praiseNum);
	
}
